package com.hua.base;

public class ToStringDemo {
    private int number;
    public ToStringDemo(int number){
        this.number = number; //有参构造
    }

    public static void main(String[] args) {
        ToStringDemo toStringDemo = new ToStringDemo(123);
        System.out.println(toStringDemo.toString()); //其中 @ 后面的数值为散列码的无符号十六进制表示。

    }

}
